package com.strive.common.model.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.strive.common.model.base.SuperEntity;
import com.strive.common.model.po.SysPowerCodesPo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.compress.utils.Lists;

import java.util.List;
import java.util.Set;

/**
 * @description: 菜单
 * @author: bingcun.chen
 * @Date: 2022/2/22 14:48
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_menu")
public class SysMenu extends SuperEntity {
    private static final long serialVersionUID = 749360940290141180L;

    private Long parent;
    private String title;
    private String css;
    private String url;
    private Integer sorts;
    private Integer enabled;
    private String describles;
    /**
     * 请求的类型
     */
    @TableField(exist = false)
    private List<SysMenu> subMenus;
    @TableField(exist = false)
    private Long roleId;
    @TableField(exist = false)
    private Set<Long> menuIds;
    @TableField(exist = false)
    private List<SysPower> powers = Lists.newArrayList();
}
